package com.jnu.hc.jnuhcusercms.service;

import com.jnu.hc.jnuhcusercms.dto.OrderListRequestDto;
import com.jnu.hc.jnuhcusercms.dto.OrderListResponseDto;
import com.jnu.hc.jnuhcusercms.dto.ResponseObject;
import com.jnu.hc.jnuhcusercms.mapper.OrdersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class OrderListServiceImpl implements OrderListService {


    @Autowired
    OrdersMapper ordersMapper;

    @Override
    public ResponseObject orderList(OrderListRequestDto orderListRequestDto) {
        List<OrderListResponseDto> orderListResponseDto=ordersMapper.ordersList(orderListRequestDto);
        return new ResponseObject(ResponseObject.SUCCESS_STATUS,ResponseObject.SUCCESS_DESC,orderListResponseDto);
    }
}
